package cn.cloud.all.security.oauth2.provider.approval;

import java.util.Collection;

/**
 * Interface for saving, retrieving and revoking user approvals (per client, per scope).
 *
 * @author Dave Syer
 */
public interface ApprovalStore {

    boolean addApprovals(Collection<Approval> approvals);

    boolean revokeApprovals(Collection<Approval> approvals);

    Collection<Approval> getApprovals(String userId, String clientId);

}
